package com.sto.stoapp.http.request;

import org.json.JSONException;
import org.json.JSONObject;

public class ServerSmsUploadRequest extends  ServerSmsRequest{

	/**
	 * 运单编号
	 */
	private String code;
	/**
	 * 手机号
	 */
	private String mobile;
	
	/**
	 * 
	 */
	private String siteserver;
	
	private String sitecode;
	

	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getSitecode() {
		return sitecode;
	}

	public void setSitecode(String sitecode) {
		this.sitecode = sitecode;
	}

	public String getSiteserver() {
		return siteserver;
	}

	public void setSiteserver(String siteserver) {
		this.siteserver = siteserver;
	}
	
	public ServerSmsUploadRequest(){
		
	}
	
	public ServerSmsUploadRequest(String code, String mobile,
			String sitecode, String siteserver){
		this.code = code;
		this.mobile = mobile;
		this.sitecode = sitecode;
		this.siteserver = siteserver;
	}
	
	public JSONObject getDataMap(){
		
		JSONObject json = new JSONObject();
		try {
			json.put("mobile", mobile);
			json.put("code", code);
			json.put("siteserver",siteserver);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}		
		
		return json;
	}
}
